package com.musicstore.entity;

import java.util.Date;

/**
 * 订单类
 * @author panyingtao
 *
 */
public class Order {
	/**
	 * 订单id
	 */
	private int id;
	/**
	 * 订单下单时间
	 */
	private Date orderDate;
	/**
	 * 用户
	 */
	private User user;
	
	/**
	 * 收件人
	 */
	private String consignee;
	
	/**
	 * 读取收件人
	 * @return
	 */
	public String getConsignee() {
		return consignee;
	}
	/**
	 * 写入收件人
	 * @param consignee
	 */
	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}
	/**
	 * 地址
	 */
	private String address;
	/**
	 * 联系方式
	 */
	private String phone;
	/**
	 * 邮箱
	 */
	private String email;
	/**
	 * 总价
	 */
	private double totalPrice;
	/**
	 * 订单状态
	 */
	private int isDeliveried;
	/**
	 * 读取订单id
	 * @return
	 */
	public int getId() {
		return id;
	}
	/**
	 * 写入订单id
	 * @param id
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * 读取下单时间
	 * @return
	 */
	public Date getOrderDate() {
		return orderDate;
	}
	/**
	 * 写入下单时间
	 * @param orderDate
	 */
	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}
	/**
	 * 读取用户
	 * @return
	 */
	public User getUser() {
		return user;
	}
	/**
	 * 写入用户
	 * @param user
	 */
	public void setUser(User user) {
		this.user = user;
	}
	/**
	 * 读取地址
	 * @return
	 */
	public String getAddress() {
		return address;
	}
	/**
	 * 写入地址
	 * @param address
	 */
	public void setAddress(String address) {
		this.address = address;
	}
	/**
	 * 读取联系手机
	 * @return
	 */
	public String getPhone() {
		return phone;
	}
	/**
	 * 写入联系手机
	 * @param phone
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}
	/**
	 * 读取邮箱
	 * @return
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * 写入邮箱
	 * @param email
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * 读取总计
	 * @return
	 */
	public double getTotalPrice() {
		return totalPrice;
	}
	/**
	 * 写入总计
	 * @param totalPrice
	 */
	public void setTotalPrice(double totalPrice) {
		this.totalPrice = totalPrice;
	}
	/**
	 * 读取订单状态
	 * @return
	 */
	public int getIsDeliveried() {
		return isDeliveried;
	}
	/**
	 * 写入订单状态
	 * @param isDeliveried
	 */
	public void setIsDeliveried(int isDeliveried) {
		this.isDeliveried = isDeliveried;
	}
	
	
}
